package website.lhc.chapter4;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>装饰器模式2</p>
 *
 * @author: longhc@citycloud.com.cn
 * @since: 2022/12/8 16:37
 * @version: 1.0
 */
@Slf4j
public class ConcreteDecoratorB extends Decorator {

    private final String state;

    public ConcreteDecoratorB(String state) {
        this.state = state;
    }

    @Override
    public void operation() {
        super.operation();
        log.info("添加新技皮肤:{}", state);
    }
}
